<?php
namespace App\Repositories;

use App\Exceptions\BasicException;
use Illuminate\Support\Facades\Hash;
use function Matrix\add;    //引入hash

class ChatLogRepository
{
    /**
     * 获取私聊记录
     * @param  $where
     * @param  $page
     * @param  $perPage
     * @return bool
     */
    public  function  getList($where,$page,$perPage){
        $list =  app('model_channel')->where($where)->orderBy('id','desc')->paginate($perPage, ['*'], '', $page);
        return $list;
    }
}


?>